package com.eascs.crm.web.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the customer_unit database table.
 * 
 */
@Entity
@Table(name="customer_unit")
@NamedQuery(name="CustomerUnit.findAll", query="SELECT c FROM CustomerUnit c")
public class CustomerUnit implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String id;

	@Column(name="customer_id")
	private String customerId;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="op_time")
	private Date opTime;

	@Column(name="unit_code")
	private String unitCode;

	@Column(name="unit_id")
	private String unitId;

	@Column(name="unit_name")
	private String unitName;

	public CustomerUnit() {
	}

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCustomerId() {
		return this.customerId;
	}

	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}

	public Date getOpTime() {
		return this.opTime;
	}

	public void setOpTime(Date opTime) {
		this.opTime = opTime;
	}

	public String getUnitCode() {
		return this.unitCode;
	}

	public void setUnitCode(String unitCode) {
		this.unitCode = unitCode;
	}

	public String getUnitId() {
		return this.unitId;
	}

	public void setUnitId(String unitId) {
		this.unitId = unitId;
	}

	public String getUnitName() {
		return this.unitName;
	}

	public void setUnitName(String unitName) {
		this.unitName = unitName;
	}

}